#region Usings

using System;
using Ninject.Core.Infrastructure;

#endregion

namespace Karma.Framework.Core.Serialization
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false,
        Inherited = true)]
    public class ConvertersAttribute : Attribute
    {
        public ConvertersAttribute(Type[] converterTypes)
        {
            Ensure.ArgumentNotNullOrEmptyCollection(converterTypes, "Converter Types");
            Types = converterTypes;
        }

        public Type[] Types { get; private set; }
    }
}